package com.fac.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 租赁订单分页查询DTO
 */
@Data
@ApiModel(description = "租赁订单分页查询参数")
public class LeaseOrderPageQueryDTO implements Serializable {

    @NotNull(message = "页码不能为空")
    @Min(value = 1, message = "页码必须大于0")
    @ApiModelProperty(value = "页码", required = true, example = "1")
    private int page = 1;

    @NotNull(message = "每页显示记录数不能为空")
    @Min(value = 1, message = "每页显示记录数必须大于0")
    @ApiModelProperty(value = "每页显示记录数", required = true, example = "10")
    private int size = 10;

    @ApiModelProperty(value = "订单状态：0待支付，1租赁中，2已完成，3已取消", example = "1")
    private Integer status;

    @ApiModelProperty(value = "用户ID", example = "1")
    private Long userId;

    @ApiModelProperty(value = "设备ID", example = "1")
    private Long equipmentId;
} 